Farseer: How can I crush Mario? [on hold]

Posted by Homer_Simpson on Game Development See other posts from Game Development or by Homer_Simpson
Published on 2013-11-10T12:10:51Z Indexed on 2013/11/10 16:13 UTC
Read the original article Hit count: 359

Filed under:
|
|

I want that Mario dies if the box is crushing him. My game has a similar level like this level from New Super Mario Bros. Wii: http://www.youtube.com/watch?v=tYyu6tFAa2M

At the beginning of the level, you see some boxes falling to the ground. If a box crushes Mario, he dies. I want to do exactly the same in my game, but I don't know how to do that in Farseer.

How can I do that in Farseer 3.3.1? Do you have any suggestions? I don't know how to do the collision detection. I use rectangles for the boxes and ground in Farseer. Mario is a polygon.

© Game Development or respective owner

Related posts about XNA

Related posts about c#